    <div class="container">
      <div class="bg-putih">

        <div class="jdl-page">
          <i class="fa fa-users"></i> <?php echo isset($judul)?$judul:'<font color="#ccc">Judul Belum Diberikan</font>'; ?>
          <span style="font-size:13px;margin-left:10px;color:#ccc;margin-top:4px;" class="pull-right">
            <a href="<?php echo site_url('auth'); ?>" title="Halaman Pengguna">PENGGUNA</a>&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;
            <a href="<?php echo site_url('auth/groups'); ?>" title="Halaman Grup Pengguna" class="aktif">GRUP</a>
          <?php 
            if($this->ion_auth->in_group(array($this->config->item('super_admin_group', 'ion_auth')))){
          ?>
            &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;
            <a href="<?php echo site_url('auth/roles'); ?>" title="Halaman Role Grup">ROLE</a>&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;
            <a href="<?php echo site_url('auth/roles_category'); ?>"  title="Halaman Kategori Role">KATEGORI ROLE</a>
          <?php
            }
          ?>
          </span>
          <div class="clearfix"></div>
        </div>
        
        <?php echo display_flash(); ?>

        <div class="row">

          <div class="col-xs-8">
            <div class="btn-group btn-group-sm" role="group" aria-label="...">
              <a href="<?php echo site_url('auth/create_group'); ?>" class="btn btn-primary">&nbsp;Tambah</a>
            </div>
          </div>
          <div class="col-xs-4">
            <div class="input-group input-group-sm">
              <input type="text" class="form-control" placeholder="Cari nama grup atau deskripsinya ..." title="Masukkan nama grup atau deskripsinya ...">
              <span class="input-group-btn">
                <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span></button>
              </span>
            </div>
          </div>

        </div>

        <table class="table table-striped table-hover margintop20">
          <thead>
            <tr>
              <th width="4%" style="text-align:center;">#</th>
              <th width="25%">Nama Grup</th>
              <th>Deskripsi</th>
            </tr>
          </thead>
          <tbody>
          <?php
            if(!empty($list)){
              $i = 1; 
              foreach ($list as $groups):
          ?>
            <tr>
              <td align="center"><?php echo $i++?></td>
              <td>
              	<?php echo ucwords(str_replace('_', ' ', $groups['name']));?>
								<span style="color:#c5c5c5;font-size:11px;">&#8212; <?php echo $groups['jml_role'];?> role</span>		
              </td>
              <td>
              	<?php echo ucwords(str_replace('_', ' ', $groups['description']));?>											            	
	            	<span class="pull-right">
	            		<?php 
                    if($groups['name'] == $this->config->item('default_group', 'ion_auth')){
                      echo '<small class="label label-disabled" title="Grup ini tidak boleh diedit">Edit</small>';
                    }else{
                      echo anchor("auth/edit_group/".$groups['id'], 'Edit','class="label label-success" title="Edit grup '.$groups['name'].'"');
                    }
                  ?>
	            		<?php 
	            			if($groups['name'] == $this->config->item('super_admin_group', 'ion_auth')||$groups['name'] == $this->config->item('admin_group', 'ion_auth')||$groups['name'] == $this->config->item('default_group', 'ion_auth')||$groups['jml_role'] > 0){
	            				echo '<small class="label label-disabled" title="Grup ini tidak bisa dihapus">Hapus</small>';
	            			}else{
	            				echo anchor("auth/delete_group/".$groups['id'], 'Hapus','class="label label-default" title="Hapus grup '.$groups['name'].'" onClick="return confirm(\'Yakin ingin menghapus grup '.$groups['name'].' ?\');"');
	            			}
	            		?>	            		
	            	</span>
              </td>              
            </tr>
          <?php 
              endforeach;
            }else{
          ?>
            <tr>
              <td colspan="3" align="center">Tidak ada data</td>
            </tr>
          <?php 
            }
          ?>
          </tbody>
        </table>

        <div class="clearfix"></div>
      </div>
    </div> <!-- /container -->